import toast from "./toast";

const obj = {}

obj.install = function (Vue) {
  const constructor = Vue.extend(toast)
  const toasts = new constructor()
  toasts.$mount(document.createElement('div'))
  document.body.appendChild(toasts.$el)
  Vue.prototype.$toast=toasts
}

export default obj
